/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * Nihongo
 * Copyright (C) Massimiliano Maniscalco 2011, 2012 <massimiliano@massiLinuxBook>
 * 
Nihongo is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Nihongo is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _RESULTTESTPAROLE_H_
#define _RESULTTESTPAROLE_H_

#include "result_controller.h"
#include "result_parole_model.h"

class Parola;

class ResultTestParole: public ResultController 
{
public:
	inline ResultTestParole ( Glib::RefPtr<Gtk::Builder> _bldr, list<Parola> *pp );
	inline ~ResultTestParole () { delete _paroleListColumns; }
	bool present_window ( void );
	unsigned int load_item_in_tree_view ( void );

protected:

private:
	list<Parola> *_parole;
	ResultParoleModel* _paroleListColumns;
	Glib::RefPtr<Gtk::ListStore> _paroleListStore;

};

inline ResultTestParole::
ResultTestParole ( Glib::RefPtr<Gtk::Builder> _bldr, list<Parola> *pp )
: _parole ( pp )
{
	_paroleListColumns = new ResultParoleModel ();
	_paroleListStore = Gtk::ListStore::create(*_paroleListColumns);
	init_result_controller ( _bldr );
	connect_signals ();
}

#endif // _RESULTTESTPAROLE_H_
